package com.ruoyi.vote.admin.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 微信订阅消息模板业务对象 wx_sub_tamp
 *
 * @author 筑巢
 * @date 2023-07-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WxSubTampBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 模板ID
     */
    @NotBlank(message = "模板ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tampId;

    /**
     * 模板编号
     */
    @NotNull(message = "模板编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long tampNumber;

    /**
     * 模板标题
     */
    @NotBlank(message = "模板标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 模块
     */
    private String tempModel;

    /**
     * 是否可用
     */
    @NotBlank(message = "是否可用不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 小程序跳转地址
     */
    private String path;

}
